home *** CD-ROM | disk | FTP | other *** search
/ Champak 112 / jogo-disk-112.iso / Games / ophelias_diary_2_episode_1.swf / scripts / DefineButton2_2258 / BUTTONCONDACTION on(release).as
Text File  |  2010-07-14  |  841b  |  36 lines

  1. on(release){
  2.    if(eval("/Variables:Vert") == 1)
  3.    {
  4.       if(eval("/Variables:PrescottAction") == 0 and eval("/Variables:Echelle") == 0)
  5.       {
  6.          if(eval("/Variables:Pendant") == 1 and eval("/Variables:Main") == 1 and eval("/Variables:Lettre") == 1)
  7.          {
  8.             tellTarget("Prescott")
  9.             {
  10.                gotoAndStop("ArracheEchelle");
  11.                play();
  12.             }
  13.          }
  14.          else
  15.          {
  16.             tellTarget("/Voix")
  17.             {
  18.                gotoAndStop("CantDoThis");
  19.                play();
  20.             }
  21.          }
  22.       }
  23.    }
  24.    else if(eval("/Variables:Echelle") == 0)
  25.    {
  26.       if(eval("/Variables:Parle") == 0)
  27.       {
  28.          tellTarget("/Voix")
  29.          {
  30.             gotoAndStop("ToDark");
  31.             play();
  32.          }
  33.       }
  34.    }
  35. }
  36.